﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Base.Master" AutoEventWireup="true" CodeBehind="PriceList.aspx.cs" Inherits="YXQ.Manager.Manager.PriceList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        $(function () {
            $('#tbb').edatagrid({
               // title: '<%=pmodel.ProjectName%>管理',
                iconCls: 'icon icon-nav',
                height: 440,
                nowrap: true,
                autoRowHeight: false,
                striped: true,
                url: "../Handler/DataHandler.ashx?Optype=getdata&mtype=<%=Request["mtype"]%>&ptype=<%=Request["ptype"]%>&proid=<%=Request["proid"]%>",
                saveUrl: "../Handler/DataHandler.ashx?Optype=savedata&mtype=<%=Request["mtype"]%>&ptype=<%=Request["ptype"]%>&proid=<%=Request["proid"]%>",   
                updateUrl: "/Handler/DataHandler.ashx?OpType=savedata&mtype=<%=Request["mtype"]%>&ptype=<%=Request["ptype"]%>&proid=<%=Request["proid"]%>",
                destroyUrl: "/Handler/AdminHandler.ashx?OpType=deldata&mtype=<%=Request["mtype"]%>&ptype=<%=Request["ptype"]%>&proid=<%=Request["proid"]%>",
                sortOrder: 'desc', 
                pagination: true,
                showFooter:true,
                pageSize: 10, 
                pageList: [10, 20, 30]
      
            });

        }); 
        function formatterdate(val, row) {
            if (val == "" || val == null) {
                return "";
            }
            var dt = val.replace("T", " ");
            var rtnDate = new Date(Date.parse(dt.replace(/-/g, "/")));
            return rtnDate.getFullYear() + "-" + (rtnDate.getMonth() + 1) + "-" + rtnDate.getDate();
        }
        function GridSearch() {
          
            $('#tdd').edatagrid('load', {
                remark: $('#txtPName').val(),
                startTime: $('#txtStartTime').val(),
                endTime: $('#txtEndTime').val()
            });
        }

    </script>

       
    

<%--    <table class="tbs_table">
        <tr>
            <td class="tdtitle" align="left">
                备注：
            </td>
            <td align="left" class="tdtitle">
                <input type="text" id="txtPName" />
            </td>
             <td align="left" class="tdtitle">
               时间：
            </td>
              <td align="left" class="tdtitle">
                <input type="text" id="txtStartTime"   onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
            </td> 
              <td align="left" class="tdtitle">
                <input type="text" id="txtEndTime"   onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
            </td>
            <td align="left" class="tdtitle">
                <input type="button" id="btnSearch" value="搜索" class="bt_wb1"  onclick="GridSearch();"/>
            </td>
        </tr>
    </table>--%>
    <table id="tbb"  toolbar="#tb" rownumbers="true" fitcolumns="true"  singleselect="true">
         <thead>
                <tr>
                    <th field="id" width="50" checkbox="true">
                        选择
                    </th>
                    <th field="paymoney" width="100" editor="{type:'numberbox',options:{required:true}}">
                        金额
                    </th>
                    <th field="paydate" width="100" editor="{type:'my97',options:{required:true}}" formatter="formatterdate">
                        付款日期
                    </th>
                    <th field="remark" width="300" editor="text">
                        备注
                    </th>
                    
                </tr>
            </thead>
    </table>
     <div id="tb" style="height:auto">  
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:$('#tbb').edatagrid('addRow')">新增</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="javascript:$('#tbb').edatagrid('destroyRow');">删除</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="javascript:$('#tbb').edatagrid('saveRow');YXQ.Manager.RefreshDialog('openwin');">保存</a>    
         <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-undo" plain="true" onclick="javascript:$('#tbb').edatagrid('cancelRow')">取消</a>
     </div>  


</asp:Content>
